#pragma once

namespace cp
{
	template<class K>
	class set
	{
		struct SetKofT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
	public:
		typedef typename RBTree<K, const K, SetKofT>::Iterator iterator;
		typedef typename RBTree<K, const K, SetKofT>::ConstIterator const_iterator;

		iterator begin()
		{
			return _s.Begin();
		}

		iterator end()
		{
			return _s.End();
		}

		const_iterator begin() const
		{
			return _s.Begin();
		}

		const_iterator end() const
		{
			return _s.End();
		}

		iterator find(const K& key)
		{
			return _s.Find(key);
		}

		pair<iterator, bool>  insert(const K& key)
		{
			return _s.Insert(key);
		}

	private:
		RBTree<K, const K, SetKofT> _s;
	};
}